SamanthaStorm commited on
Commit
64f5cfa
·
verified ·
1 Parent(s): ebc9c70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -249,10 +249,15 @@ def analyze_composite(uploaded_file, *texts):
249
 
250
  # ——— 7) Gradio interface ———————————————————————————————————————————————
251
  message_inputs = [gr.Textbox(label="Message")]
 
252
  iface = gr.Interface(
253
  fn=analyze_composite,
254
- inputs=[gr.File(file_types=[".txt",".png",".jpg",".jpeg"], label="Upload text or image")]
255
- ] + message_inputs,
 
 
 
 
256
  outputs=gr.Textbox(label="Analysis"),
257
  title="Tether Analyzer (extended tone tags)",
258
  description="Emotion profiling, pattern tags, and a wide set of nuanced tone categories—no abuse score or DARVO."
 
249
 
250
  # ——— 7) Gradio interface ———————————————————————————————————————————————
251
  message_inputs = [gr.Textbox(label="Message")]
252
+
253
  iface = gr.Interface(
254
  fn=analyze_composite,
255
+ inputs=[
256
+ gr.File(
257
+ file_types=[".txt", ".png", ".jpg", ".jpeg"],
258
+ label="Upload text or image"
259
+ )
260
+ ] + message_inputs, # <— here the list closes, then we concatenate
261
  outputs=gr.Textbox(label="Analysis"),
262
  title="Tether Analyzer (extended tone tags)",
263
  description="Emotion profiling, pattern tags, and a wide set of nuanced tone categories—no abuse score or DARVO."