alexkueck commited on
Commit
0a87ee1
·
1 Parent(s): 72d514d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -3,13 +3,11 @@ 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()
 
3
 
4
  #demo = gr.load("mistralai/Mixtral-8x7B-Instruct-v0.1", src="models")
5
 
6
+ description = "Test"
7
+ title = "Test"
8
+ interface = gr.Interface.load("mistralai/Mixtral-8x7B-Instruct-v0.1",
9
+ description=description,
10
+ title = title,
11
+ examples=[["american robin"]]
12
+ )
13
+ interface.launch(share=True)