Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -245,7 +245,7 @@ def predict(user_input, timeout_seconds=1800): # 30 minutes = 1800 seconds
|
|
245 |
# while writing to the log file, ensure that the commit scheduler is locked to avoid parallel
|
246 |
# access
|
247 |
|
248 |
-
return prediction
|
249 |
|
250 |
# Set-up the Gradio UI
|
251 |
# Add text box.
|
@@ -254,7 +254,7 @@ textbox = gr.Textbox(placeholder="Enter your query here", lines=6)
|
|
254 |
# Create the interface
|
255 |
demo = gr.Interface(
|
256 |
inputs=[textbox], fn=predict, outputs="text",
|
257 |
-
title="I Mat - Your Mental Trainer",
|
258 |
description="This web API presents an interface to interact with your mental trainer Mat",
|
259 |
concurrency_limit=16
|
260 |
)
|
|
|
245 |
# while writing to the log file, ensure that the commit scheduler is locked to avoid parallel
|
246 |
# access
|
247 |
|
248 |
+
return prediction
|
249 |
|
250 |
# Set-up the Gradio UI
|
251 |
# Add text box.
|
|
|
254 |
# Create the interface
|
255 |
demo = gr.Interface(
|
256 |
inputs=[textbox], fn=predict, outputs="text",
|
257 |
+
title="I Mat - Your Personal Mental Trainer",
|
258 |
description="This web API presents an interface to interact with your mental trainer Mat",
|
259 |
concurrency_limit=16
|
260 |
)
|