Skip to content

Commit

Permalink
examples: fix style, and port (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sykp241095 authored Apr 14, 2024
1 parent 9942b2c commit 1aa4e3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/llamaindex_rag/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def cli():
@click.option('--reload', is_flag=True, help="Enable auto-reload")
def runserver(host, port, reload):
uvicorn.run(
"__main__:app", host=host or "127.0.0.1", port=port or 8000, reload=reload,
"__main__:app", host=host, port=port, reload=reload,
log_level="debug", workers=1,
)

Expand Down
4 changes: 2 additions & 2 deletions examples/llamaindex_rag/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</head>

<body>
<div class="flex justify-center py-40">
<div class="flex justify-center py-10 h-svh">
<div id="app" class="w-1/2">
<label class="block">
<input type="text" v-model="question" placeholder="Input question..."
Expand All @@ -23,7 +23,7 @@
<i v-if="loading && responses == ''" class="fas fa-spinner animate-spin"></i>
Ask
</button>
<div id="responses" class="w-full min-h-full border py-2 px-6">
<div id="responses" class="w-full min-h-max border py-2 px-6">
<div v-html="compiledMarkdown">Empty</div>
</div>
</div>
Expand Down

0 comments on commit 1aa4e3f

Please sign in to comment.