itsalissonsilva commited on
Commit
78d8a3e
·
verified ·
1 Parent(s): 2ff6d22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
- from huggingface_hub import InferenceApi
3
  import os
 
4
 
5
  api_token = os.getenv('token')
6
 
7
- client = InferenceApi("gpt2", api_token=api_token)
8
 
9
  scenario = "You wake up in a strange forest. Paths lead in all directions."
10
  choices = [
 
1
  import gradio as gr
 
2
  import os
3
+ from huggingface_hub import InferenceClient
4
 
5
  api_token = os.getenv('token')
6
 
7
+ client = InferenceClient("gpt2", token=api_token)
8
 
9
  scenario = "You wake up in a strange forest. Paths lead in all directions."
10
  choices = [