Spaces:
Running
Running
latest changes
Browse files
main.py
CHANGED
@@ -111,7 +111,7 @@ Answer:
|
|
111 |
# return link_buttons
|
112 |
|
113 |
|
114 |
-
|
115 |
with gr.Blocks() as demo:
|
116 |
gradio_app = GradioApp()
|
117 |
# link_buttons = []
|
@@ -140,3 +140,38 @@ with gr.Blocks() as demo:
|
|
140 |
clear.click(lambda: None, None, chatbot, queue=False)
|
141 |
demo.queue()
|
142 |
demo.launch(share=True, server_name="0.0.0.0", root_path="/bot")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
# return link_buttons
|
112 |
|
113 |
|
114 |
+
'''
|
115 |
with gr.Blocks() as demo:
|
116 |
gradio_app = GradioApp()
|
117 |
# link_buttons = []
|
|
|
140 |
clear.click(lambda: None, None, chatbot, queue=False)
|
141 |
demo.queue()
|
142 |
demo.launch(share=True, server_name="0.0.0.0", root_path="/bot")
|
143 |
+
'''
|
144 |
+
|
145 |
+
|
146 |
+
with gr.Blocks(css="""
|
147 |
+
#chatbot {margin-bottom: -20px;}
|
148 |
+
footer {display: none !important;}
|
149 |
+
#colab-link-container {display: none !important;}
|
150 |
+
#chatbot .wrap > .label {
|
151 |
+
display: none !important;
|
152 |
+
}
|
153 |
+
""") as demo:
|
154 |
+
gradio_app = GradioApp()
|
155 |
+
output_text = gr.Markdown(label="Output", value=" ")
|
156 |
+
infer_status = gr.Label("Infer Status: ", visible=False)
|
157 |
+
|
158 |
+
with gr.Column(scale=1, min_width=800):
|
159 |
+
chatbot = gr.Chatbot(elem_id="chatbot", height=400)
|
160 |
+
with gr.Row():
|
161 |
+
msg = gr.Textbox(label="Enter your message", show_label=False, lines=1)
|
162 |
+
send_button = gr.Button("Send", elem_id="send_button", scale=0)
|
163 |
+
|
164 |
+
msg.submit(gradio_app.user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
165 |
+
gradio_app.bot, chatbot, chatbot
|
166 |
+
)
|
167 |
+
send_button.click(gradio_app.user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
168 |
+
gradio_app.bot, chatbot, chatbot
|
169 |
+
)
|
170 |
+
|
171 |
+
demo.queue()
|
172 |
+
demo.launch(share=True, server_name="0.0.0.0", root_path="/bot")
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
|
177 |
+
|
pragetx_scraper/pragetx_scraper/settings.py
CHANGED
@@ -95,6 +95,10 @@ DOWNLOAD_HANDLERS = {
|
|
95 |
"http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
|
96 |
"https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
|
97 |
}
|
|
|
|
|
|
|
|
|
98 |
|
99 |
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
|
100 |
|
|
|
95 |
"http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
|
96 |
"https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
|
97 |
}
|
98 |
+
PLAYWRIGHT_LAUNCH_OPTIONS = {
|
99 |
+
"headless": True,
|
100 |
+
"args": ["--no-sandbox"],
|
101 |
+
}
|
102 |
|
103 |
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
|
104 |
|
pragetx_scraper/pragetx_scraper/spiders/data/pragetx.com.md
ADDED
File without changes
|
requirements.txt
CHANGED
@@ -90,12 +90,12 @@ nvidia-cublas-cu12==12.1.3.1
|
|
90 |
nvidia-cuda-cupti-cu12==12.1.105
|
91 |
nvidia-cuda-nvrtc-cu12==12.1.105
|
92 |
nvidia-cuda-runtime-cu12==12.1.105
|
93 |
-
nvidia-cudnn-cu12==8.9.
|
94 |
nvidia-cufft-cu12==11.0.2.54
|
95 |
nvidia-curand-cu12==10.3.2.106
|
96 |
nvidia-cusolver-cu12==11.4.5.107
|
97 |
nvidia-cusparse-cu12==12.1.0.106
|
98 |
-
nvidia-nccl-cu12==2.20.5
|
99 |
nvidia-nvjitlink-cu12==12.5.40
|
100 |
nvidia-nvtx-cu12==12.1.105
|
101 |
oauthlib==3.2.2
|
@@ -173,7 +173,7 @@ toolz==0.12.1
|
|
173 |
torch==2.3.0
|
174 |
tqdm==4.66.4
|
175 |
transformers==4.41.1
|
176 |
-
triton==2.3.0
|
177 |
Twisted==24.3.0
|
178 |
typer==0.12.3
|
179 |
typing-inspect==0.9.0
|
@@ -182,7 +182,7 @@ tzdata==2024.1
|
|
182 |
ujson==5.10.0
|
183 |
urllib3==2.2.1
|
184 |
uvicorn==0.30.0
|
185 |
-
uvloop==0.19.0
|
186 |
w3lib==2.1.2
|
187 |
watchfiles==0.22.0
|
188 |
websocket-client==1.8.0
|
|
|
90 |
nvidia-cuda-cupti-cu12==12.1.105
|
91 |
nvidia-cuda-nvrtc-cu12==12.1.105
|
92 |
nvidia-cuda-runtime-cu12==12.1.105
|
93 |
+
nvidia-cudnn-cu12==8.9.4.25
|
94 |
nvidia-cufft-cu12==11.0.2.54
|
95 |
nvidia-curand-cu12==10.3.2.106
|
96 |
nvidia-cusolver-cu12==11.4.5.107
|
97 |
nvidia-cusparse-cu12==12.1.0.106
|
98 |
+
#nvidia-nccl-cu12==2.20.5
|
99 |
nvidia-nvjitlink-cu12==12.5.40
|
100 |
nvidia-nvtx-cu12==12.1.105
|
101 |
oauthlib==3.2.2
|
|
|
173 |
torch==2.3.0
|
174 |
tqdm==4.66.4
|
175 |
transformers==4.41.1
|
176 |
+
#triton==2.3.0
|
177 |
Twisted==24.3.0
|
178 |
typer==0.12.3
|
179 |
typing-inspect==0.9.0
|
|
|
182 |
ujson==5.10.0
|
183 |
urllib3==2.2.1
|
184 |
uvicorn==0.30.0
|
185 |
+
#uvloop==0.19.0
|
186 |
w3lib==2.1.2
|
187 |
watchfiles==0.22.0
|
188 |
websocket-client==1.8.0
|