Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,5 +60,13 @@ else:
|
|
| 60 |
)
|
| 61 |
|
| 62 |
# Launch the UI earlier or without passing through the Agent
|
| 63 |
-
GradioUI(agent).launch()
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
# Launch the UI earlier or without passing through the Agent
|
| 63 |
+
#GradioUI(agent).launch()
|
| 64 |
|
| 65 |
+
|
| 66 |
+
import gradio as gr
|
| 67 |
+
|
| 68 |
+
def example_function(input_text):
|
| 69 |
+
return "Processed: " + input_text
|
| 70 |
+
|
| 71 |
+
interface = gr.Interface(fn=example_function, inputs="text", outputs="text")
|
| 72 |
+
interface.launch()
|