Spaces:
Runtime error
Runtime error
harsh-manvar
commited on
Commit
•
ec7a41c
1
Parent(s):
b862bb1
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from typing import Iterator
|
2 |
import gradio as gr
|
3 |
|
4 |
-
# import torch
|
5 |
from transformers.utils import logging
|
6 |
from model import get_input_token_length, run
|
7 |
|
@@ -138,21 +137,6 @@ with gr.Blocks(css='style.css') as demo:
|
|
138 |
value=50,
|
139 |
)
|
140 |
|
141 |
-
|
142 |
-
# gr.Examples(
|
143 |
-
# examples=[
|
144 |
-
# 'Hello there! How are you doing?',
|
145 |
-
# 'Can you explain briefly to me what is the Python programming language?',
|
146 |
-
# 'Explain the plot of Cinderella in a sentence.',
|
147 |
-
# 'How many hours does it take a man to eat a Helicopter?',
|
148 |
-
# "Write a 100-word article on 'Benefits of Open-Source in AI research'",
|
149 |
-
# ],
|
150 |
-
# inputs=textbox,
|
151 |
-
# outputs=[textbox, chatbot],
|
152 |
-
# fn=process_example,
|
153 |
-
# cache_examples=True,
|
154 |
-
# )
|
155 |
-
|
156 |
gr.Markdown(LICENSE)
|
157 |
|
158 |
textbox.submit(
|
|
|
1 |
from typing import Iterator
|
2 |
import gradio as gr
|
3 |
|
|
|
4 |
from transformers.utils import logging
|
5 |
from model import get_input_token_length, run
|
6 |
|
|
|
137 |
value=50,
|
138 |
)
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
gr.Markdown(LICENSE)
|
141 |
|
142 |
textbox.submit(
|