Spaces:
Runtime error
Runtime error
Dawoodthouseef
commited on
Commit
•
03ba0ac
1
Parent(s):
7c564cc
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,8 @@ theme = gr.themes.Monochrome(
|
|
27 |
font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
|
28 |
)
|
29 |
def response(question):
|
30 |
-
start_time = time.time()
|
31 |
res = model(ins.format(question))
|
32 |
-
|
33 |
-
yield {'inference_time': end_time - start_time,'response':res}
|
34 |
|
35 |
|
36 |
examples = [
|
|
|
27 |
font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"],
|
28 |
)
|
29 |
def response(question):
|
|
|
30 |
res = model(ins.format(question))
|
31 |
+
yield res
|
|
|
32 |
|
33 |
|
34 |
examples = [
|