Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def predict(user_input,company):
|
|
129 |
temperature=0
|
130 |
)
|
131 |
print("responseRavi",response)
|
132 |
-
|
133 |
except Exception as e:
|
134 |
prediction = f'Sorry, I encountered the following error: \n {e}'
|
135 |
|
@@ -148,7 +148,7 @@ def predict(user_input,company):
|
|
148 |
))
|
149 |
f.write("\n")
|
150 |
|
151 |
-
return
|
152 |
|
153 |
# Set-up the Gradio UI
|
154 |
# Add text box and radio button to the interface
|
|
|
129 |
temperature=0
|
130 |
)
|
131 |
print("responseRavi",response)
|
132 |
+
prediction = response#.choices[0].message.content.strip()
|
133 |
except Exception as e:
|
134 |
prediction = f'Sorry, I encountered the following error: \n {e}'
|
135 |
|
|
|
148 |
))
|
149 |
f.write("\n")
|
150 |
|
151 |
+
return prediction
|
152 |
|
153 |
# Set-up the Gradio UI
|
154 |
# Add text box and radio button to the interface
|