Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ prompt_suffix = '<|end|>'
|
|
28 |
@spaces.GPU
|
29 |
def process_input(input_type, file, question):
|
30 |
if not file or not question:
|
31 |
-
return "Please upload a file and provide a question
|
32 |
|
33 |
# Prepare the prompt
|
34 |
if input_type == "Image":
|
@@ -67,25 +67,10 @@ with gr.Blocks(
|
|
67 |
radius_size="lg",
|
68 |
),
|
69 |
) as demo:
|
70 |
-
|
71 |
-
# Insert Simli Widget
|
72 |
-
gr.HTML(
|
73 |
-
"""
|
74 |
-
<simli-widget
|
75 |
-
token="gAAAAABoEN7c6Z4ZuimkCDa7PmB5OgiOqepELAtSQYwUliuC1Zdw6LOPejI0g1XpnDWchiwNCDFDPMd80TVY2NXjnEx2zvnv3FUSXfT4C0dsJT8QTXAklaXyxtGSZD4sG53AFxo1jSzjQWXPnQHVfIU_ISxQqenWluJrCIL1jmEMZehyj3Hx4xpnJ3lOZs3LX4YPPxbUR_CEtIMcp7roc083OVvDJO1Ycxew9KJmiBLqFbiT6hBQUjLi3BLTcEZtl8HxV_YKaKCqZNP9dt73H4a5QTQ5UvypJK2JlQiCWeH6t8LfpON66Hr-aDuZOhTiKbzhNF27jlPHJh6uXyF_rUSRvaOArQJL0S9_x3PCTCi-HBOs9VcSBCe7ICCQFMdQrF1rk7EiGQhjrJeD57rrxZXw6SeOBQjK8-a8JEeS6Fzd7ORNiWXeSEtT46TbVq03X0e44E7hZY90sSwERr2DIeCA7CM5eeHXf_iU_NCl0OwCLgF2Yd6TFQgtT-bPmEnyye5oH-GvZ52U"
|
76 |
-
agentid="ff60ad9c-1afd-4b76-86a0-f94bf6e7b3b2"
|
77 |
-
position="right"
|
78 |
-
customimage="https://i.postimg.cc/K8PPT4GD/temp-Imagerldp-BZ.avif"
|
79 |
-
customtext="FaceTime GABI"
|
80 |
-
></simli-widget>
|
81 |
-
<script src="https://app.simli.com/simli-widget/index.js" async type="text/javascript"></script>
|
82 |
-
"""
|
83 |
-
)
|
84 |
-
|
85 |
gr.Markdown(
|
86 |
"""
|
87 |
-
# This Space is using Phi-4 as the LLM for the
|
88 |
-
Try uploading an **image** or **audio** file, ask
|
89 |
We want to leverage this to allow GABI to have the ability to interact and understand various contents.
|
90 |
"""
|
91 |
)
|
|
|
28 |
@spaces.GPU
|
29 |
def process_input(input_type, file, question):
|
30 |
if not file or not question:
|
31 |
+
return "Please upload a file and provide a question."
|
32 |
|
33 |
# Prepare the prompt
|
34 |
if input_type == "Image":
|
|
|
67 |
radius_size="lg",
|
68 |
),
|
69 |
) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
gr.Markdown(
|
71 |
"""
|
72 |
+
# This Space is using Phi-4 as the LLM for the Multimodal Demo
|
73 |
+
Try uploading an **image** or **audio** file, ask a question, and get a response from the model!
|
74 |
We want to leverage this to allow GABI to have the ability to interact and understand various contents.
|
75 |
"""
|
76 |
)
|