Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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 = [
|