Spaces:
Runtime error
Runtime error
Commit
•
6650ff5
1
Parent(s):
7ea324d
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
gr.load("models/WhereIsAI/UAE-Large-V1").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
#gr.load("models/WhereIsAI/UAE-Large-V1").launch()
|
4 |
+
|
5 |
+
# Use a pipeline as a high-level helper
|
6 |
+
from transformers import pipeline
|
7 |
+
|
8 |
+
pipe = pipeline("feature-extraction", model="WhereIsAI/UAE-Large-V1")
|
9 |
+
|
10 |
+
gr.Interface(
|
11 |
+
predict,
|
12 |
+
inputs='text',
|
13 |
+
outputs='text',
|
14 |
+
title="Mapping",
|
15 |
+
).launch()
|