Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -267,7 +267,7 @@ def get_emotional_response(context):
|
|
267 |
return f"Predicted Emotion: {predicted_emotion}"
|
268 |
|
269 |
# Gradio interface
|
270 |
-
|
271 |
emotional_response = get_emotional_response(input_text)
|
272 |
sentiment_response = get_sentiment(input_text)
|
273 |
generated_text = generate_text(input_text)
|
@@ -288,3 +288,4 @@ iface = gr.Interface(
|
|
288 |
)
|
289 |
|
290 |
iface.launch()
|
|
|
|
267 |
return f"Predicted Emotion: {predicted_emotion}"
|
268 |
|
269 |
# Gradio interface
|
270 |
+
def process_input(input_text):
|
271 |
emotional_response = get_emotional_response(input_text)
|
272 |
sentiment_response = get_sentiment(input_text)
|
273 |
generated_text = generate_text(input_text)
|
|
|
288 |
)
|
289 |
|
290 |
iface.launch()
|
291 |
+
|