charliebaby2023 commited on
Commit
79c71e7
1 Parent(s): fe64e29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -7,8 +7,7 @@ data = 'https://www.youtube.com/watch?v=ETDEuH3YL7I' #'https://www.youtube.com/w
7
 
8
 
9
 
10
- client = InferenceClient(model="http://127.0.0.1:8080")
11
- client.text_generation(prompt="Write a code for snake game")
12
 
13
 
14
  def app(video_link):
@@ -22,9 +21,6 @@ interface = gr.Interface(
22
  outputs=gr.Video(label = "video_path")
23
  )
24
  #gr.Interface.queue(api_open=True)
25
- token = 'hi'
26
- for token in client.text_generation("How do you make cheese?", max_new_tokens=12, stream=True):
27
- print(token)
28
  interface.launch(debug=True)
29
 
30
 
 
7
 
8
 
9
 
10
+
 
11
 
12
 
13
  def app(video_link):
 
21
  outputs=gr.Video(label = "video_path")
22
  )
23
  #gr.Interface.queue(api_open=True)
 
 
 
24
  interface.launch(debug=True)
25
 
26