Spaces:
Runtime error
Runtime error
CognitiveScience
commited on
Commit
·
b4c4894
1
Parent(s):
45d1c4d
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import requests
|
|
4 |
from acogsphere import acf
|
5 |
from bcogsphere import bcf
|
6 |
import math
|
7 |
-
|
8 |
#from python_actr import *
|
9 |
#from cogscidighum import *
|
10 |
|
@@ -133,10 +133,6 @@ with gr.Blocks() as demo:
|
|
133 |
response="Hi " + link #(link) #acf("hello world")[0]["label"] + str(math.trunc(acf("hello world")[0]["score"])*100/100)+bcf(link)
|
134 |
return response,1 #result #soup.prettify()
|
135 |
cssubmit.click(cs, name, [comments,count])
|
136 |
-
|
137 |
-
with gr.Blocks() as demo:
|
138 |
-
gr.FileExplorer(label="Working directory")
|
139 |
-
gr.FileExplorer(root="./data", label="Persistent storage")
|
140 |
|
141 |
with gr.Row():
|
142 |
with gr.Column():
|
@@ -144,6 +140,10 @@ with gr.Blocks() as demo:
|
|
144 |
review = gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
|
145 |
comments = gr.Textbox(label="Comments", lines=10, placeholder="Do you have any feedback on gradio?")
|
146 |
submit = gr.Button(value="Submit Feedback")
|
|
|
|
|
|
|
|
|
147 |
with gr.Column():
|
148 |
chatbot = gr.Chatbot()
|
149 |
msg = gr.Textbox()
|
|
|
4 |
from acogsphere import acf
|
5 |
from bcogsphere import bcf
|
6 |
import math
|
7 |
+
import glob
|
8 |
#from python_actr import *
|
9 |
#from cogscidighum import *
|
10 |
|
|
|
133 |
response="Hi " + link #(link) #acf("hello world")[0]["label"] + str(math.trunc(acf("hello world")[0]["score"])*100/100)+bcf(link)
|
134 |
return response,1 #result #soup.prettify()
|
135 |
cssubmit.click(cs, name, [comments,count])
|
|
|
|
|
|
|
|
|
136 |
|
137 |
with gr.Row():
|
138 |
with gr.Column():
|
|
|
140 |
review = gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
|
141 |
comments = gr.Textbox(label="Comments", lines=10, placeholder="Do you have any feedback on gradio?")
|
142 |
submit = gr.Button(value="Submit Feedback")
|
143 |
+
with gr.Column():
|
144 |
+
gr.FileExplorer(label="Working directory")
|
145 |
+
gr.FileExplorer(root="./data", label="Persistent storage")
|
146 |
+
|
147 |
with gr.Column():
|
148 |
chatbot = gr.Chatbot()
|
149 |
msg = gr.Textbox()
|