Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def fn_pdf_to_text(input_pdf):
|
|
40 |
# Inference
|
41 |
|
42 |
model_text = "google/gemma-2-27b-it"
|
43 |
-
model_vision = "google/paligemma2-3b-pt-224"
|
44 |
|
45 |
client = InferenceClient()
|
46 |
|
@@ -96,7 +96,7 @@ app_text = gr.ChatInterface(
|
|
96 |
title = "Google Gemma",
|
97 |
description = model_text,
|
98 |
)
|
99 |
-
|
100 |
def fn_vision(
|
101 |
prompt,
|
102 |
image_url,
|
@@ -142,10 +142,10 @@ app_vision = gr.Interface(
|
|
142 |
title = "Google Gemma",
|
143 |
description = model_vision,
|
144 |
)
|
145 |
-
|
146 |
app = gr.TabbedInterface(
|
147 |
-
[app_text
|
148 |
-
["Text"
|
149 |
).launch()
|
150 |
|
151 |
#if __name__ == "__main__":
|
|
|
40 |
# Inference
|
41 |
|
42 |
model_text = "google/gemma-2-27b-it"
|
43 |
+
#model_vision = "google/paligemma2-3b-pt-224"
|
44 |
|
45 |
client = InferenceClient()
|
46 |
|
|
|
96 |
title = "Google Gemma",
|
97 |
description = model_text,
|
98 |
)
|
99 |
+
"""
|
100 |
def fn_vision(
|
101 |
prompt,
|
102 |
image_url,
|
|
|
142 |
title = "Google Gemma",
|
143 |
description = model_vision,
|
144 |
)
|
145 |
+
"""
|
146 |
app = gr.TabbedInterface(
|
147 |
+
[app_text],
|
148 |
+
["Text"]
|
149 |
).launch()
|
150 |
|
151 |
#if __name__ == "__main__":
|