Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from gradio_client import Client
|
2 |
|
3 |
# Initialize the client
|
@@ -35,7 +36,11 @@ def get_response(user_input):
|
|
35 |
except Exception as e:
|
36 |
return f"Error: {e}"
|
37 |
|
38 |
-
#
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
from gradio_client import Client
|
3 |
|
4 |
# Initialize the client
|
|
|
36 |
except Exception as e:
|
37 |
return f"Error: {e}"
|
38 |
|
39 |
+
# Gradio interface
|
40 |
+
iface = gr.Interface(fn=get_response,
|
41 |
+
inputs="text",
|
42 |
+
outputs="text",
|
43 |
+
live=True)
|
44 |
+
|
45 |
+
# Launch the interface
|
46 |
+
iface.launch()
|