mayankchugh-learning commited on
Commit
1ffddd0
·
verified ·
1 Parent(s): 475d293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -76,7 +76,7 @@ def predict(user_input):
76
  )
77
 
78
  prediction = response.choices[0].message.content
79
-
80
  except Exception as e:
81
  prediction = e
82
 
@@ -86,12 +86,9 @@ def predict(user_input):
86
 
87
  return prediction
88
 
89
- def hellohi(user_input):
90
- return user_input+" hi"
91
-
92
  # Create the interface
93
  demo = gr.Interface(
94
- fn=hellohi,
95
  inputs=gr.Textbox(placeholder="Enter your query here", lines=6),
96
  outputs="text",
97
  title="AMA on Tesla 10-K statements",
 
76
  )
77
 
78
  prediction = response.choices[0].message.content
79
+ print(f"Prediction:: {prediction}")
80
  except Exception as e:
81
  prediction = e
82
 
 
86
 
87
  return prediction
88
 
 
 
 
89
  # Create the interface
90
  demo = gr.Interface(
91
+ fn=predict,
92
  inputs=gr.Textbox(placeholder="Enter your query here", lines=6),
93
  outputs="text",
94
  title="AMA on Tesla 10-K statements",