Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,4 @@
|
|
1 |
-
# import gradio as gr
|
2 |
-
# print("HELLLLLLLLLLLLLLLLLLLLLLLLLLLL")
|
3 |
-
# gr.load("models/NousResearch/Yarn-Mistral-7b-128k").launch()
|
4 |
-
|
5 |
-
from transformers import pipeline
|
6 |
import gradio as gr
|
|
|
7 |
|
8 |
-
pipe = pipeline("translation", model="NousResearch/Yarn-Mistral-7b-128k")
|
9 |
|
10 |
-
demo = gr.Interface.from_pipeline(pipe)
|
11 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
gr.load("models/NousResearch/Yarn-Mistral-7b-128k",src="models").launch()
|
3 |
|
|
|
4 |
|
|
|
|