Chris4K commited on
Commit
17055d1
·
verified ·
1 Parent(s): 618bcf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -17,6 +17,15 @@ if current_dir not in sys.path:
17
 
18
  def create_fallback_interface():
19
  """Create a fallback interface if main components fail to load."""
 
 
 
 
 
 
 
 
 
20
  with gr.Blocks(title="MMORPG - Limited Mode") as interface:
21
  gr.Markdown("""
22
  # 🎮 MMORPG Application - Limited Mode
@@ -117,4 +126,4 @@ def main():
117
  )
118
 
119
  if __name__ == "__main__":
120
- main()
 
17
 
18
  def create_fallback_interface():
19
  """Create a fallback interface if main components fail to load."""
20
+
21
+ # Try to import the simple SearchHF interface
22
+ try:
23
+ from simple_searchhf import create_searchhf_interface
24
+ return create_searchhf_interface()
25
+ except ImportError:
26
+ pass
27
+
28
+ # Create basic fallback if even simple interface fails
29
  with gr.Blocks(title="MMORPG - Limited Mode") as interface:
30
  gr.Markdown("""
31
  # 🎮 MMORPG Application - Limited Mode
 
126
  )
127
 
128
  if __name__ == "__main__":
129
+ main()