Sephfox commited on
Commit
e78a4ed
·
verified ·
1 Parent(s): fd5ca2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -267,7 +267,7 @@ def get_emotional_response(context):
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)
@@ -278,7 +278,6 @@ def process_input(input_text):
278
  }
279
 
280
  iface = gr.Interface(
281
- iface = gr.Interface(
282
  fn=process_input,
283
  inputs="text",
284
  outputs=[
@@ -289,4 +288,3 @@ iface = gr.Interface(
289
  )
290
 
291
  iface.launch()
292
-
 
267
  return f"Predicted Emotion: {predicted_emotion}"
268
 
269
  # Gradio interface
270
+ f 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)
 
278
  }
279
 
280
  iface = gr.Interface(
 
281
  fn=process_input,
282
  inputs="text",
283
  outputs=[
 
288
  )
289
 
290
  iface.launch()