Spaces:
Sleeping
Sleeping
# app.py | |
import gradio as gr | |
import subprocess | |
def chat_with_support(input_text): | |
process = subprocess.Popen( | |
["python3", "function_orchestrator.py"], | |
stdin=subprocess.PIPE, | |
stdout=subprocess.PIPE, | |
stderr=subprocess.PIPE, | |
text=True | |
) | |
stdout, stderr = process.communicate(input=input_text) | |
return stdout | |
iface = gr.Interface( | |
fn=chat_with_support, | |
inputs="text", | |
outputs="text", | |
title="TechNova Support Chat", | |
description="Chat with TechNova support bot to manage your orders and account." | |
) | |
iface.launch() | |