modified requirements
Browse files- app.py +1 -2
- requirements.txt +2 -1
app.py
CHANGED
@@ -29,13 +29,12 @@ MARKDOWN_TEXT = """
|
|
29 |
# PyGPT Text Generation Demo
|
30 |
this is a demo using the [PyGPT model](https://huggingface.co/not-lain/PyGPT) to generate text based on an input instruction and input text.
|
31 |
the model is based on the [GPT-2 model](https://huggingface.co/gpt2) and finetuned on the [python_code_instructions_18k_alpaca](https://huggingface.co/datasets/iamtarun/python_code_instructions_18k_alpaca) dataset.
|
32 |
-
|
33 |
"""
|
34 |
|
35 |
|
36 |
|
37 |
with gr.Blocks() as iface:
|
38 |
-
gr.Markdown(
|
39 |
length = gr.Slider(1, 100, 50, label="Max Length")
|
40 |
instruction = gr.Text(label= "instruction")
|
41 |
inp = gr.Text(label="input")
|
|
|
29 |
# PyGPT Text Generation Demo
|
30 |
this is a demo using the [PyGPT model](https://huggingface.co/not-lain/PyGPT) to generate text based on an input instruction and input text.
|
31 |
the model is based on the [GPT-2 model](https://huggingface.co/gpt2) and finetuned on the [python_code_instructions_18k_alpaca](https://huggingface.co/datasets/iamtarun/python_code_instructions_18k_alpaca) dataset.
|
|
|
32 |
"""
|
33 |
|
34 |
|
35 |
|
36 |
with gr.Blocks() as iface:
|
37 |
+
gr.Markdown(MARKDOWN_TEXT)
|
38 |
length = gr.Slider(1, 100, 50, label="Max Length")
|
39 |
instruction = gr.Text(label= "instruction")
|
40 |
inp = gr.Text(label="input")
|
requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
transformers
|
|
|
|
1 |
+
transformers
|
2 |
+
torch
|