brewedAwake commited on
Commit
ee481a4
·
verified ·
1 Parent(s): 00abb6e

Created app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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()