Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=[
|
255 |
-
|
|
|
|
|
|
|
|
|
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."
|