Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,6 @@ def interact(input):
|
|
12 |
# Use ThreadPoolExecutor to manage the threads
|
13 |
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:
|
14 |
# Create a Gradio interface with the loaded model
|
15 |
-
interface = gr.Interface(fn=interact, inputs="text", outputs="
|
16 |
# Handle the interactions with Gradio
|
17 |
interface.launch()
|
|
|
12 |
# Use ThreadPoolExecutor to manage the threads
|
13 |
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:
|
14 |
# Create a Gradio interface with the loaded model
|
15 |
+
interface = gr.Interface(fn=interact, inputs="text", outputs="text")
|
16 |
# Handle the interactions with Gradio
|
17 |
interface.launch()
|