Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,15 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
demo = gr.load("mistralai/Mixtral-8x7B-Instruct-v0.1", src="models")
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio.mix import Series
|
| 3 |
|
| 4 |
demo = gr.load("mistralai/Mixtral-8x7B-Instruct-v0.1", src="models")
|
| 5 |
|
| 6 |
+
description = "Test!"
|
| 7 |
+
title = "Mixe von Modellen"
|
| 8 |
+
translator_fr = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-fr-en")
|
| 9 |
+
story_gen = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator")
|
| 10 |
+
translator_en = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-fr")
|
| 11 |
+
examples = [["L'aventurier est approché par un mystérieux étranger, pour une nouvelle quête."]]
|
| 12 |
+
|
| 13 |
+
Series(translator_fr, story_gen, translator_en, description = description,
|
| 14 |
+
title = title,
|
| 15 |
+
examples=examples, inputs = gr.inputs.Textbox(lines = 10)).launch()
|