Skip to content

Commit 852fb32

Browse files
authored
Merge pull request #152 from SWivid/hf-spaces-fix
Fix for HF Spaces demo
2 parents 5fa5682 + 32cdd21 commit 852fb32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gradio_app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,4 +788,7 @@ def main(port, host, share, api):
788788

789789

790790
if __name__ == "__main__":
791-
main()
791+
if not USING_SPACES:
792+
main()
793+
else:
794+
app.queue().launch()

0 commit comments

Comments
 (0)