vishaljoshi24 commited on
Commit
d2b58f8
·
1 Parent(s): a72179d

Added app.py and amended requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +18 -0
  2. requirements.txt +2 -1
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import gradio as gr
3
+
4
+ api_key = os.getenv("HF_TOKEN")
5
+
6
+ def start_training():
7
+ os.system("python quickstart.py" )
8
+ return "Evaluation completed!"
9
+
10
+ iface = gr.Interface(
11
+ fn=start_training,
12
+ inputs=[],
13
+ outputs="text",
14
+ live=True,
15
+ allow_flagging='never'
16
+ )
17
+
18
+ iface.launch()
requirements.txt CHANGED
@@ -2,4 +2,5 @@ accelerate>=1.4.0
2
  datasets>=3.0.0
3
  transformers>=4.55.0
4
  fastapi
5
- uvicorn
 
 
2
  datasets>=3.0.0
3
  transformers>=4.55.0
4
  fastapi
5
+ uvicorn
6
+ gradio