TobDeBer commited on
Commit
3c2d17d
·
verified ·
1 Parent(s): a813fbb
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,7 @@ from huggingface_hub import hf_hub_download, login
6
  from themes.research_monochrome import ResearchMonochrome
7
  from typing import Iterator, List, Dict
8
 
 
9
  import os
10
  import requests
11
  import json
@@ -73,6 +74,7 @@ print(f"Llama-server process started with PID {process.pid}")
73
  custom_theme = ResearchMonochrome()
74
  print("Theme type:", type(custom_theme))
75
 
 
76
  def generate(
77
  message: str,
78
  chat_history: List[Dict],
 
6
  from themes.research_monochrome import ResearchMonochrome
7
  from typing import Iterator, List, Dict
8
 
9
+ import spaces
10
  import os
11
  import requests
12
  import json
 
74
  custom_theme = ResearchMonochrome()
75
  print("Theme type:", type(custom_theme))
76
 
77
+ @spaces.GPU(duration=30)
78
  def generate(
79
  message: str,
80
  chat_history: List[Dict],