Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
-
|
| 4 |
# OpenAI GPT
|
| 5 |
|
| 6 |
pipe_gpt = pipeline(model = "openai-community/gpt2")
|
|
@@ -21,7 +21,7 @@ app_gpt = gr.Interface(
|
|
| 21 |
["Hello, World."]
|
| 22 |
]
|
| 23 |
)
|
| 24 |
-
|
| 25 |
# Google Gemma
|
| 26 |
|
| 27 |
pipe_gemma = pipeline(model = "google/gemma-2-2b-it")
|
|
@@ -88,6 +88,6 @@ app_llama = gr.Interface(
|
|
| 88 |
# UI
|
| 89 |
|
| 90 |
app = gr.TabbedInterface(
|
| 91 |
-
[
|
| 92 |
-
["
|
| 93 |
).launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
+
"""
|
| 4 |
# OpenAI GPT
|
| 5 |
|
| 6 |
pipe_gpt = pipeline(model = "openai-community/gpt2")
|
|
|
|
| 21 |
["Hello, World."]
|
| 22 |
]
|
| 23 |
)
|
| 24 |
+
"""
|
| 25 |
# Google Gemma
|
| 26 |
|
| 27 |
pipe_gemma = pipeline(model = "google/gemma-2-2b-it")
|
|
|
|
| 88 |
# UI
|
| 89 |
|
| 90 |
app = gr.TabbedInterface(
|
| 91 |
+
[app_gemma, app_phi, app_llama],
|
| 92 |
+
["Google Gemma", "Microsoft Phi", "Meta Llama"]
|
| 93 |
).launch()
|