injection10 commited on
Commit
534152b
·
verified ·
1 Parent(s): 6671a14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -1,13 +1,8 @@
1
  import gradio as gr
2
- from huggingface_hub import InferenceClient
3
 
4
- client = InferenceClient("ShadowEternity/CTFsolver")
5
 
6
- def respond(message, history):
7
- respose = client.text_generation(message, max_new_tokens=512)
8
- return response
9
-
10
- demo = gr.ChatInterFace(fn=respond)
11
 
12
- if __name__ == "__main__":
13
- demo.launch()
 
1
  import gradio as gr
2
+ from OS
3
 
4
+ token = os.getenv("SecretToken")
5
 
6
+ demo = gr.load("lodels/ShadowEternity/CTFsolver", token=token)
 
 
 
 
7
 
8
+ demo.launch()