Spaces:
Sleeping
Sleeping
Created app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def dummy_translation(text):
|
| 4 |
+
return "Sorry, the actual model can't run on CPU hardware. Please upgrade to GPU hardware and update the code!"
|
| 5 |
+
|
| 6 |
+
iface = gr.Interface(fn=dummy_translation, inputs="text", outputs="text",
|
| 7 |
+
title="Seed-X-Instruct-7B Demo",
|
| 8 |
+
description="This would run the large model if GPU hardware is enabled.")
|
| 9 |
+
|
| 10 |
+
iface.launch()
|