Upload folder using huggingface_hub
Browse files- .github/workflows/update_space.yml +3 -0
- gdemo.py +1 -1
.github/workflows/update_space.yml
CHANGED
@@ -21,5 +21,8 @@ jobs:
|
|
21 |
- name: Install Gradio
|
22 |
run: python -m pip install https://gradio-builds.s3.amazonaws.com/c0138fa3cf227b01cdc468c7817298d5f7849c9e/gradio-3.32.0-py3-none-any.whl
|
23 |
|
|
|
|
|
|
|
24 |
- name: Deploy to Spaces
|
25 |
run: gradio deploy
|
|
|
21 |
- name: Install Gradio
|
22 |
run: python -m pip install https://gradio-builds.s3.amazonaws.com/c0138fa3cf227b01cdc468c7817298d5f7849c9e/gradio-3.32.0-py3-none-any.whl
|
23 |
|
24 |
+
- name: Log in to Hugging Face
|
25 |
+
run: python -c 'import huggingface_hub; huggingface_hub.login(token={{ secrets.hf_token }})'
|
26 |
+
|
27 |
- name: Deploy to Spaces
|
28 |
run: gradio deploy
|
gdemo.py
CHANGED
@@ -25,7 +25,7 @@ def generate_next(dialogue):
|
|
25 |
with gr.Blocks() as demo:
|
26 |
gr.Markdown(
|
27 |
"""
|
28 |
-
# GPT
|
29 |
|
30 |
Let's play GPT Tag! Try to get GPT to say the target word by prompting it up to 10 times.
|
31 |
Each prompt you get to enter the next three words in the text sequence.
|
|
|
25 |
with gr.Blocks() as demo:
|
26 |
gr.Markdown(
|
27 |
"""
|
28 |
+
# GPT Tag2
|
29 |
|
30 |
Let's play GPT Tag! Try to get GPT to say the target word by prompting it up to 10 times.
|
31 |
Each prompt you get to enter the next three words in the text sequence.
|