Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
import gradio as gr
|
7 |
from utilities.setup import get_files
|
8 |
from server import EmbeddingService, QAService
|
9 |
-
|
10 |
|
11 |
#################### Functions ####################
|
12 |
def process_transcripts(files, context):
|
@@ -17,7 +17,7 @@ def process_transcripts(files, context):
|
|
17 |
# some way to wait or a progress bar?
|
18 |
return "Completed Loading Data"
|
19 |
|
20 |
-
|
21 |
def retrieve_answer(question, context):
|
22 |
#with QAService(conf) as q:
|
23 |
# q.run(question)
|
|
|
6 |
import gradio as gr
|
7 |
from utilities.setup import get_files
|
8 |
from server import EmbeddingService, QAService
|
9 |
+
#import spaces
|
10 |
|
11 |
#################### Functions ####################
|
12 |
def process_transcripts(files, context):
|
|
|
17 |
# some way to wait or a progress bar?
|
18 |
return "Completed Loading Data"
|
19 |
|
20 |
+
#@spaces.GPU
|
21 |
def retrieve_answer(question, context):
|
22 |
#with QAService(conf) as q:
|
23 |
# q.run(question)
|