alemarino2025 commited on
Commit
e4eadfa
·
verified ·
1 Parent(s): 5eecc98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, context_for_query, user_input
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
  )