omarhkh commited on
Commit
33da86c
1 Parent(s): 7bb3549

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
- from huggingface_hub import notebook_login
3
 
4
-
5
- python3 -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('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')"
6
- notebook_login()
 
 
 
 
 
7
  gr.Interface.load("models/omarhkh/resnet-50-finetuned-omar").launch()
 
1
  import gradio as gr
2
+ #from huggingface_hub import notebook_login
3
 
4
+ demo = gr.Interface(
5
+ fn=greet,
6
+ inputs=gr.Textbox(lines=2, placeholder="Name Here..."),
7
+ outputs="text",
8
+ )
9
+ demo.launch()
10
+ #python3 -c "from huggingface_hub.hf_api import HfFolder; HfFolder.save_token('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')"
11
+ #notebook_login()
12
  gr.Interface.load("models/omarhkh/resnet-50-finetuned-omar").launch()